const express = require('express');
const router = express.Router();
const Upload = require('../../../controller/system/upload-controller');

/**
 * 更新 - 更新头像
 * @route POST /api/private/upload/avatar
 * @group 弹幕管理 - 创建
 * @param {string} id - 用户主键id
 * @returns {object} 200 - 用户信息
 * @returns {object} 605 - 请求失败错误
 * @returns {Error}  default - Unexpected error
 */
router.post('/avatar', Upload.updateAvatar);

module.exports = router;